//
//  XS_PlanTodayHeaderView.swift
//  XueDao
//
//  Created by Mac on 2020/12/15.
//

import UIKit

protocol XS_PlanTodayHeaderViewDelegate {
    func headerView(headerView : XS_PlanTodayHeaderView, didClickChangeBtn: UIButton)
}

class XS_PlanTodayHeaderView: UICollectionReusableView {
    
    var delegate : XS_PlanTodayHeaderViewDelegate?

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    @IBAction func changeBtnAction(_ sender: UIButton) {
        if delegate != nil {
            delegate?.headerView(headerView: self, didClickChangeBtn: sender)
        }
    }
    
}
